package com.stsdai.manager.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.stsdai.manager.service.TestService;

@Controller
@RequestMapping("test")
public class TestController {

	//http://127.0.0.1:8080/rest/test/queryDate
	@Autowired
	private TestService testService;
	
	/**
	 * 查询当前时间
	 * @return
	 */
	@RequestMapping(value = "queryDate")
	@ResponseBody
	public String queryDate(){
		String date = this.testService.queryDate();
		return date;
	}
}
